import ItemKeyword from '@/components/data/item/ItemKeyword'
import ItemSearchKeyword from '@/components/data/item/ItemSearchKeyword'
import ItemNature from '@/components/data/item/ItemNature'
import ItemAccount from '@/components/data/item/ItemAccount'
import ItemRegion from '@/components/data/item/ItemRegion'
import ItemTimeShare from '@/components/data/item/ItemTimeShare'
import BackupItemRegion from '@/components/data/item/BackupItemRegion'
import BackupItemKeyword from '@/components/data/item/BackupItemKeyword'

const routers = [
  {path: 'item-keywords', component: ItemKeyword},
  {path: 'item-search-keywords', component: ItemSearchKeyword},
  {path: 'item-natures', component: ItemNature},
  {path: 'item-accounts', component: ItemAccount},
  {path: 'item-region', component: ItemRegion},
  {path: 'item-time-shares', component: ItemTimeShare},
  {path: 'backup-item-region', component: BackupItemRegion},
  {path: 'backup-item-keyword', component: BackupItemKeyword}
]

const menu = {
  title: '项目分析',
  icon: 'th-large',
  flag: false,
  sons: [
    {
      title: '项目关键词分析',
      icon: 'list',
      path: '/data/item-keywords',
      perm: 'financeKeywordReport:list',
      flag: false
    },
    {
      title: '项目搜索词分析',
      icon: 'list',
      path: '/data/item-search-keywords',
      perm: 'analysisSearchKeywordConsumption:search',
      flag: false
    },
    {
      title: '项目词性分析',
      icon: 'list',
      path: '/data/item-natures',
      perm: 'analysisBidKeywordConsumption:item',
      flag: false
    },
    {
      title: '项目账户分析',
      icon: 'list',
      path: '/data/item-accounts',
      perm: 'analysisBidKeywordConsumption:account',
      flag: false
    },
    {
      title: '项目地域分析',
      icon: 'list',
      path: '/data/item-region',
      perm: 'analysisBidRegionConsumption:region',
      flag: false
    },
    {
      title: '项目时段分析',
      icon: 'list',
      path: '/data/item-time-shares',
      perm: 'analysisBidTimeShareConsumption:timeShare',
      flag: false
    }
  ]
}

export default {
  routers,
  menu
}
